package com.example.server.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Food)表实体类
 *
 * @author makejava
 * @since 2022-11-21 09:10:57
 */
@SuppressWarnings("serial")
public class Food extends Model<Food> {
    //食物id
    private Integer id;
    //管理员id
    private Integer adminid;
    //食物名称（15字内）
    private String foodname;
    //食物种类（1 2 3 4 5 6 7 ）
    private Integer foodtype;
    //食物简介(50字内)
    private String foodbrief;
    //食物图片
    private String foodphoto;
    //食物热量（卡路里：大卡/100克）
    private Integer caloric;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAdminid() {
        return adminid;
    }

    public void setAdminid(Integer adminid) {
        this.adminid = adminid;
    }

    public String getFoodname() {
        return foodname;
    }

    public void setFoodname(String foodname) {
        this.foodname = foodname;
    }

    public Integer getFoodtype() {
        return foodtype;
    }

    public void setFoodtype(Integer foodtype) {
        this.foodtype = foodtype;
    }

    public String getFoodbrief() {
        return foodbrief;
    }

    public void setFoodbrief(String foodbrief) {
        this.foodbrief = foodbrief;
    }

    public String getFoodphoto() {
        return foodphoto;
    }

    public void setFoodphoto(String foodphoto) {
        this.foodphoto = foodphoto;
    }

    public Integer getCaloric() {
        return caloric;
    }

    public void setCaloric(Integer caloric) {
        this.caloric = caloric;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

